package com.crm.service.crm.clue.controller;

import com.crm.model.common.dtos.ResponseResult;
import com.crm.service.crm.clue.service.FollowUpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/follow-up")
public class FollowUpController {

    @Autowired
    private FollowUpService followUpService;

    /**
     * 回显线索详情信息
     * @param clueIdName
     * @return
     */
    @GetMapping("/{clue-Id-name}")
    public ResponseResult findByIdClueIdName(@PathVariable(name = "clue-Id-name") String clueIdName){
        return followUpService.findByidClueIdName(clueIdName);
    }
}
